package com.qst.express.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qst.express.entity.Courier;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qst.express.entity.vo.CourierVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mjh
 * @since 2022-09-25
 */
public interface CourierService extends IService<Courier> {

    List<Map<String, String>> console();

    IPage<Courier> pageTeacherCondition(Page<Courier> courierPage, CourierVo courierVo);

     boolean isCourierByPhone(String phone);

    void updateLoginTime(String userPhone);

    Courier findCourierByPhone(String userPhone);

    boolean isIdentification(String phone);

    boolean updateCourier(Courier c);

    boolean updateUserName(String userPhone, String userName);

    boolean addDelivery(String userphone);

}
